﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;

public partial class _Default : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Student"] == null)
        {
            Response.Redirect("~/Student/HomePage.aspx");
        }
        Session["Today"] = DateTime.Today.ToString();
    }      

    protected void ASPxNewsControl1_TailClick1(object source, DevExpress.Web.ASPxNewsControl.NewsItemEventArgs e)
    {
        Response.Redirect("~/Pages/Competition_Details.aspx?id=" + e.Item.Name);
    }
}